<?php

class Application_Form_UserUpdatePassword extends Application_Form_User
{
    public function init()
    {
	$this->addElement('password', 'old_password', array(
	    'label'      => 'Altes Passwort:',
	    'required'   => true,
	    'obscure'    => true,
	    'filters'    => array('StringTrim'),
	    'validators' => array(
		array('validator' => 'StringLength', 'options' => array(0, 20)),
		array('validator' => 'NotEmpty')
	    )
	));
	parent::init();
	$this->removeElement('forename');
	$this->removeElement('surname');
	$this->removeElement('email');
	$this->removeElement('telnumber');
	$this->removeElement('form_of_employment');
	$this->removeElement('is_admin');
	$this->getElement('submit')->setLabel('Passwort ändern');
    }
}
?>